<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2025/2/9
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Title</title>
  </head>
  <body>

    <form action="${pageContext.request.contextPath}/user" method="post">
        用户名<input type="text" name="username"/> <br/>
        密码 <input type="password" name="password"/> <br/>
        <input type="hidden" name="uid" value="7"/>
      <!--name属性值固定,value指定请求方式-->
        <input type="hidden" name="_method" value="PUT">
        <input type="submit" value="提交"/>
    </form>

    <hr/>

    <form action="${pageContext.request.contextPath}/user/9" method="post">
      <input type="hidden" name="_method" value="DELETE">
      <input type="submit" value="提交"/>
    </form>
  
  </body>
</html>
